package TWO;
class Triangle extends AbstractP{
	private double b1;
	private double b2;
	private double b3;
	public Triangle(double b1,double b2,double b3){
		this.b1=b1;
		this.b2=b2;
		this.b3=b3;
	}
	public double getL(){
		return(b1+b2+b3);
	}
	public double getA(){
		return(Math.sqrt((b1+b2+b3)/2)*(((b1+b2+b3)/2)-b1)*(((b1+b2+b3)/2)-b1)*(((b1+b2+b3)/2)-b2));
	}
}